if (true) {
    let a = `name`;
}
console.log(a);

const MYNAME = 'viking1';

let add = (a,b) =>{return a+b}

let numbers = [1,2,3];
let doubleNumbers = numbers.map((number) => number*2)
console.log(doubleNumbers)


let name = 'viking';
let ab = `My name is ${name}`;
console.log(ab)
class Animal {
    constructor(name, age) {
        this.name = name;
        this.age = age;
    }
    shout() {
        return `My name is $(this.name),age is $(this.age)`
    }

    static foo() {
        return 'Here is a static method';
    }
}

const cow = new Animal('betty', 2);
cow.shout();

Animal.foo();

class Dog extends Animal {
    constructor(name, age = 2, color = 'block') {
        super(name, age);
        this.color = color;
    }

    shout() {
        return super.shout() + `, color is $(this.color)`;
    }
}

const jackDog = new Dog('jack0');
jackDog.shout();


export const PI = 3.14;

export function hello(){
    console.log('Hello ES6');
}

export let person = {name:'viking'}
import * as util from './hello'

console.log(util.PI)
console.log(util.person)


'use strict';

var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

var _u = require('./u');

var _u2 = _interopRequireDefault(_u);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var numbers = [1, 2, 3];
var doubleNumbers = numbers.map(function (number) {
  return number * 2;
});
console.log(doubleNumbers);

var mike = { name: 'mike', age: 40 };
mike = _extends({}, mike, { sex: 'male' });
console.log(mike);

_u2.default.ab();

let numbers = [1,2,3];
let doubleNumbers = numbers.map((number) => number*2);
console.log(doubleNumbers);

let mike = {name:'mike',age:40};
mike = {...mike,sex:'male'};
console.log(mike)

import u from  './u'
u.ab();
export default  function ab(){
    console.log('hello')
}
/******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};
/******/
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/
/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId]) {
/******/ 			return installedModules[moduleId].exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			i: moduleId,
/******/ 			l: false,
/******/ 			exports: {}
/******/ 		};
/******/
/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ 		// Flag the module as loaded
/******/ 		module.l = true;
/******/
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/
/******/
/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;
/******/
/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;
/******/
/******/ 	// define getter function for harmony exports
/******/ 	__webpack_require__.d = function(exports, name, getter) {
/******/ 		if(!__webpack_require__.o(exports, name)) {
/******/ 			Object.defineProperty(exports, name, {
/******/ 				configurable: false,
/******/ 				enumerable: true,
/******/ 				get: getter
/******/ 			});
/******/ 		}
/******/ 	};
/******/
/******/ 	// getDefaultExport function for compatibility with non-harmony modules
/******/ 	__webpack_require__.n = function(module) {
/******/ 		var getter = module && module.__esModule ?
/******/ 			function getDefault() { return module['default']; } :
/******/ 			function getModuleExports() { return module; };
/******/ 		__webpack_require__.d(getter, 'a', getter);
/******/ 		return getter;
/******/ 	};
/******/
/******/ 	// Object.prototype.hasOwnProperty.call
/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "";
/******/
/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(__webpack_require__.s = 0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ (function(module, exports, __webpack_require__) {

var text = __webpack_require__(1);
console.log(text);

/***/ }),
/* 1 */
/***/ (function(module, exports) {

module.exports = "Hello world!";

/***/ })
/******/ ]);
module.exports = "Hello world!";
var text = require('./hello');
console.log(text);
module.exports = function(){
    console.log('This is a message from the demo package');
}
function* idMaker(){
  var index = 0;
  while(index<3){
    yield index++;
  }
}

var gen = idMaker();

console.log(gen.next().value);
console.log(gen.next().value);
console.log(gen.next().value);
console.log(gen.next().value);

